Returns the element at a specified index in an enumeration.
Use the method to obtain the element at a specified index in an enumeration. If the specified index is less than zero or greater than or equal to the number of elements in the enumeration, the exception is raised.